package cn.edu.huanghuai.newsofhuanghuai.sevice.Impl;

import cn.edu.huanghuai.newsofhuanghuai.dao.AdminDao;
import cn.edu.huanghuai.newsofhuanghuai.pojo.User;
import cn.edu.huanghuai.newsofhuanghuai.sevice.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * 管理员实现层
 *
 * @author whisper
 * @since 2025/06/11 21:34
 **/
@Service
public class AdminServiceImpl implements AdminService {

    @Autowired
    private AdminDao adminDao;



    @Override
    public List<User> queryAllUser() {
        return adminDao.queryAllUser();
    }

    @Override
    public int banUser(int id) {
        return adminDao.banUser(id);
    }

    @Override
    public int releaseUser(int id) {
        return adminDao.releaseUser(id);
    }


}
